<?php
namespace app\index\controller;
use think\Loader;
class Doc extends Base{

    public function _initialize()
    {
        parent::_initialize();
        $this->assign('index_css',4);
        $this->assign('sie',pageSie(4));//页面描述与关键字
    }

    // 法律文书
    public function index()
    {
        $type                  = input('type');
        $tag                   = input('tag');
        $sort                  = input('sort');
        $invoking                    = Loader::model('Question','service');
        $type_list                   = $invoking->writType();
        $data                        = $invoking->writList($type,$tag,$sort);
        $this->assign('type',$type);
        $this->assign('tag',$tag);
        $this->assign('sort',$sort);
        $this->assign('type_list',$type_list);
        $this->assign('list',$data['list']);
        $this->assign('page',$data['page']);
        return $this->fetch();
    }

}
